<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wickr-crypto-c: Wickr_stream_iv</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">wickr-crypto-c
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wickr_stream_iv</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structwickr__stream__iv.html">wickr_stream_iv</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A deterministic random IV generator using a 64 byte secure random seed and HMAC-SHA512.  <a href="structwickr__stream__iv.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gaaad5726a228b7866b0cb392c131f95be"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structwickr__stream__iv.html">wickr_stream_iv_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wickr__stream__iv.html#gaaad5726a228b7866b0cb392c131f95be">wickr_stream_iv_create</a> (const <a class="el" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a> engine, <a class="el" href="structwickr__cipher.html">wickr_cipher_t</a> cipher)</td></tr>
<tr class="separator:gaaad5726a228b7866b0cb392c131f95be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaec8a5b5d70a86997c8158d047c7eed34"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structwickr__stream__iv.html">wickr_stream_iv_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wickr__stream__iv.html#gaec8a5b5d70a86997c8158d047c7eed34">wickr_stream_iv_copy</a> (const <a class="el" href="structwickr__stream__iv.html">wickr_stream_iv_t</a> *iv)</td></tr>
<tr class="separator:gaec8a5b5d70a86997c8158d047c7eed34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad6ac87d891822a866a0d7cad48f79e27"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wickr__stream__iv.html#gad6ac87d891822a866a0d7cad48f79e27">wickr_stream_iv_destroy</a> (<a class="el" href="structwickr__stream__iv.html">wickr_stream_iv_t</a> **iv)</td></tr>
<tr class="separator:gad6ac87d891822a866a0d7cad48f79e27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaddcfdc9904ec0ffd32ce8f988aefc484"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structwickr__buffer.html">wickr_buffer_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wickr__stream__iv.html#gaddcfdc9904ec0ffd32ce8f988aefc484">wickr_stream_iv_generate</a> (<a class="el" href="structwickr__stream__iv.html">wickr_stream_iv_t</a> *iv)</td></tr>
<tr class="separator:gaddcfdc9904ec0ffd32ce8f988aefc484"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Function Documentation</h2>
<a id="gaec8a5b5d70a86997c8158d047c7eed34"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaec8a5b5d70a86997c8158d047c7eed34">&#9670;&nbsp;</a></span>wickr_stream_iv_copy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structwickr__stream__iv.html">wickr_stream_iv_t</a>* wickr_stream_iv_copy </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structwickr__stream__iv.html">wickr_stream_iv_t</a> *&#160;</td>
          <td class="paramname"><em>iv</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Copy a stream iv generator</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iv</td><td>the stream iv generator to copy </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a newly allocated stream iv generator set holding a deep copy of the properties of 'source' </dd></dl>

</div>
</div>
<a id="gaaad5726a228b7866b0cb392c131f95be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaaad5726a228b7866b0cb392c131f95be">&#9670;&nbsp;</a></span>wickr_stream_iv_create()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structwickr__stream__iv.html">wickr_stream_iv_t</a>* wickr_stream_iv_create </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structwickr__crypto__engine.html">wickr_crypto_engine_t</a>&#160;</td>
          <td class="paramname"><em>engine</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structwickr__cipher.html">wickr_cipher_t</a>&#160;</td>
          <td class="paramname"><em>cipher</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create a stream iv generator using an engine and cipher</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">engine</td><td>see '<a class="el" href="structwickr__stream__iv.html" title="A deterministic random IV generator using a 64 byte secure random seed and HMAC-SHA512.">wickr_stream_iv</a>' property documentation </td></tr>
    <tr><td class="paramname">cipher</td><td>see '<a class="el" href="structwickr__stream__iv.html" title="A deterministic random IV generator using a 64 byte secure random seed and HMAC-SHA512.">wickr_stream_iv</a>' property documentation</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a newly allocated stream iv generator </dd></dl>

</div>
</div>
<a id="gad6ac87d891822a866a0d7cad48f79e27"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad6ac87d891822a866a0d7cad48f79e27">&#9670;&nbsp;</a></span>wickr_stream_iv_destroy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void wickr_stream_iv_destroy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwickr__stream__iv.html">wickr_stream_iv_t</a> **&#160;</td>
          <td class="paramname"><em>iv</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Destroy a stream iv generator</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iv</td><td>a pointer to a stream iv generator to destroy. Will destroy the sub properties of '*iv' as well </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaddcfdc9904ec0ffd32ce8f988aefc484"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaddcfdc9904ec0ffd32ce8f988aefc484">&#9670;&nbsp;</a></span>wickr_stream_iv_generate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structwickr__buffer.html">wickr_buffer_t</a>* wickr_stream_iv_generate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwickr__stream__iv.html">wickr_stream_iv_t</a> *&#160;</td>
          <td class="paramname"><em>iv</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Generate a new unique IV. gen_count will be increamented after calling this method, so subsequent calls will output unique values</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">iv</td><td>the stream iv generator to use for IV generation </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an IV of length 'cipher'-&gt;iv_len generated using HMAC(gen_count, seed) </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
